import { ApiProperty } from '@nestjs/swagger'
import { ModelOptions, prop } from '@typegoose/typegoose'

@ModelOptions({
    schemaOptions: {
        timestamps: true
    }
})
export class Episode {
    @ApiProperty({ description: '课时名称' }) // 接口文档
    @prop()
    name: string

    @ApiProperty({ description: '课时文件' })
    @prop()
    file: string


}
